<?php

namespace DeCMF\Core\UI\ListView;

/**
 * 扩展的单元格特性
 */
class AddonGrid extends Grid
{
    /**
     *
     * @inheritdoc
     */
    protected $builtinLinks = [
        '[DELETE]' => 'del?ids=[id]&name=[ADDON]', 
        '[EDIT]' => 'edit?id=[id]&name=[ADDON]', 
        '[ADDON]' => ''
    ];
    
    /**
     * 
     * @inheritdoc
     */
    public function __construct(array $def, array $ref, $addon)
    {
        $this->builtinLinks['[ADDON]'] = $addon;
        
        parent::__construct($def, $ref);
    }
    
}
